﻿using System;
using System.Collections.Generic;
using System.Data;
using System.IO; 
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Practices.EnterpriseLibrary.Data;

public partial class Default2 : System.Web.UI.Page
{
    Database db = DatabaseFactory.CreateDatabase("XinTu");

    protected void Page_Load(object sender, EventArgs e)
    {
       // BarChart barChart=new BarChart();
        string sql = @"SELECT    
            a.name as cname , 
      
            b.name  as typename,
            a.isnullablewe
    
            FROM dbo.syscolumns a LEFT OUTER JOIN
            dbo.systypes b ON a.xtype = b.xusertype INNER JOIN
            dbo.sysobjects d ON a.id = d.id AND d.xtype = 'U' AND 
            d.status >= 0  
            where d.name='XT_Admin'
      
            ORDER BY d.name, a.colorder";
        DataSet dataSet = db.ExecuteDataSet(CommandType.Text, sql);
       // Stream stream = new Stream();

        //barChart.Render("tuxiang", "", 30, 30, dataSet, Response.OutputStream);
    }
}